/*
 * IFDBEmp.java
 *
 * Created on 5. oktober 2006, 13:53
 *
 
 */

package db;
import model.*;
import java.util.ArrayList;
/**
 * Interface to the DBEmployeer
 * @author kbh
 */
public interface IFDBSup {
    // get all employees
    public ArrayList<Supplier> getAllSuppliers(boolean retriveAssociation);
    //get one Supplier having the phoneNo
    public Supplier findSupplier(String phoneNo, boolean retriveAssociation);
    //find one Supplier having the name
    public Supplier searchSupplierName(String name, boolean retriveAssociation);
      //find one Supplier having the phoneNo
    public Supplier searchSupplierPhoneNo( String phoneNo, boolean retriveAssociation);
    //insert a new Supplier
    public int insertSupplier(Supplier sup);
    //update information about an Supplier
    public int updateSupplier(Supplier sup);
    
}
